package command

import "image/color"

type tColorCmd struct {
	color color.Color
}

func NewColorCmd(c color.Color) IDrawCommand {
	return &tColorCmd{
		c,
	}
}

func (me *tColorCmd) Draw(g IGraphics) {
	g.Color(me.color)
}
